export const isMobilePhone = phone => {
  var reg = /^1\d{10}$/;
  return reg.test(phone || "");
};

export const isEmptyObject = val => {
  if (!val) {
    return true;
  }
  return (
    Object.prototype.toString.call(val) === "[object Object]" &&
    !Object.keys(val).length
  );
};
